switch (foo) {
    case 1:
        doSomething();
    case 2:
        doSomethingElse();
}
